/** 士兵的属性里列表*/
export default class HoneyBeesAttributeBase {
    m_SoldierName: string = "";
    m_SoldierLv: number = 1;
    m_Hitpoints: number = 1;        //生命值
    m_MaxHitpoints: number = 1;
    m_Damage: number = 1;          //攻击力
    m_HitSpeed: number = 1;        //攻击间隔
    m_Speed: number = 1;           //移动速度
    m_Range: number = 1;           //攻击范围
    m_SoliderChess: string = "";
    m_SkillId: number = 0;
    m_Attacksequence: number = 0;
    m_Reward: number = 0;
    /**克隆属性 */
    Clone(): HoneyBeesAttributeBase {
        let Temp = new HoneyBeesAttributeBase();
        Temp.m_SoldierName = this.m_SoldierName;
        Temp.m_SoldierLv = this.m_SoldierLv;
        Temp.m_Hitpoints = this.m_Hitpoints;
        Temp.m_MaxHitpoints = this.m_MaxHitpoints;
        Temp.m_Damage = this.m_Damage;
        Temp.m_HitSpeed = this.m_HitSpeed;
        Temp.m_Speed = this.m_Speed;
        Temp.m_Range = this.m_Range;
        Temp.m_SoliderChess = this.m_SoliderChess;
        Temp.m_SkillId = this.m_SkillId;
        Temp.m_Attacksequence = this.m_Attacksequence;
        return Temp;
    }
    /**加载属性 */
    LodeAttribute(KeyName: string, SoldierLv: number) {

        // let Data: _InsectInfoConfig.DataType = InsectDataMediator.instance.GetInsectDataByName(KeyName, SoldierLv);
        // //console.log(Data);
        // if (Data != null) {
        //     this.m_SoldierName = Data.Insect_Name;
        //     this.m_SoliderChess = Data.Insect_ChineseName;
        //     this.m_Damage = Data.Insect_Attack;
        //     this.m_HitSpeed = Data.Insect_Attack_Speed;
        //     this.m_Hitpoints = Data.Insect_Health;
        //     this.m_Speed = Data.MoveSpeed;
        //     this.m_MaxHitpoints = this.m_Hitpoints;
        // }
    }
}